package com.tinama.jedis01.demo.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;

/**
 * @author lgc
 * @createDate 2021/1/14 - 10:32
 */
public class JDKProxyFactory {
    public static Object getProxy(Object o,InvocationHandler invocation){
        return Proxy.newProxyInstance(o.getClass().getClassLoader(), o.getClass().getInterfaces(),invocation);
    }
}
